package com.yxkj.syh.app.huarong.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 创建者：SYH
 * 时间：2020/5/27 17:14
 * 编辑者：SYH、
 * 标签：
 * 补充说明：
 */
public class Goods implements Serializable {
    private Long id;

    private String no;

//    @ApiModelProperty(value = "是否部分退货（0-否，1-是）")
    private Integer isReturn = 0;

    //    @ApiModelProperty(value = "订单id")
    private Long parentId;

    //    @ApiModelProperty(value = "货品ID")
    private Long productId;

    //    @ApiModelProperty(value = "货号")
    private String productNo;

    //    @ApiModelProperty(value = "网图")
    private String picture;

    //    @ApiModelProperty(value = "采购数量(顿)")
    private BigDecimal quantity = BigDecimal.ZERO;

    //    @ApiModelProperty(value = "结算量(吨)")
    private BigDecimal settleQuantity = BigDecimal.ZERO;

    //    @ApiModelProperty(value = "扣点(吨)")
    private BigDecimal deductQuantity = BigDecimal.ZERO;

    //    @ApiModelProperty(value = "供货单价")
    private BigDecimal price = BigDecimal.ZERO;

    //    @ApiModelProperty(value = "采购小计")
    private BigDecimal money = BigDecimal.ZERO;

    //    @ApiModelProperty(value = "结算小计")
    private BigDecimal settleMoney = BigDecimal.ZERO;

    //    @ApiModelProperty(value = "打包数")
    private Integer packages;
    private String code;
    private String name;
    private String val;
    private BigDecimal pack;
    private BigDecimal weight;
    private boolean added;
    private int lableStatus;

    public BigDecimal getPack() {
        return pack;
    }

    public void setPack(BigDecimal pack) {
        this.pack = pack;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public String getCode() {
        if (id == null || id == 0) {
            if (productId > 0) {
                return productId + "";
            }
        }
        return id + "";
    }

    public void setCode(String code) {
        this.id = Long.decode(code);
    }


    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public boolean isAdded() {
        return added;
    }

    public void setAdded(boolean added) {
        this.added = added;
    }

    public int getLableStatus() {
        return lableStatus;
    }

    public void setLableStatus(int lableStatus) {
        this.lableStatus = lableStatus;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getSettleQuantity() {
        return settleQuantity;
    }

    public void setSettleQuantity(BigDecimal settleQuantity) {
        this.settleQuantity = settleQuantity;
    }

    public BigDecimal getDeductQuantity() {
        return deductQuantity;
    }

    public void setDeductQuantity(BigDecimal deductQuantity) {
        this.deductQuantity = deductQuantity;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getSettleMoney() {
        return settleMoney;
    }

    public void setSettleMoney(BigDecimal settleMoney) {
        this.settleMoney = settleMoney;
    }

    public Integer getPackages() {
        return packages;
    }

    public void setPackages(Integer packages) {
        this.packages = packages;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getIsReturn() {
        return isReturn;
    }

    public void setIsReturn(Integer isReturn) {
        this.isReturn = isReturn;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
}
